{{useCss "/app-pages/css/user/buff.scss"}}
<div class="points">
    <div class="nav">
        <href to="/user/buff.html">
            <div class="nav-li">积分规则</div>
        </href>
        <div class="nav-li focus">员工提成</div>
        <href to="/user/bina.html">
            <div class="nav-li">分销提成</div>
        </href>
    </div>

    <hr />

    <div class="box">
        <table class="info">
            <thead>
                <td class="number">商家</td>
                <td class="get">导购订单数</td>
                <td class="price">
                    <abbr title="他人通过分享的链接所消费的额度">导购额度</abbr>
                </td>
                <td class="get">既得红利</td>
                <td class="method">操作</td>
            </thead>
            {{#each $Cache.user.shoppinguide.guide_list}}
            <tr>
                <td>{{bus_id}}</td>
                <td>{{achs.length}}</td>
                <td>{{acc}}</td>
                <td>{{#Fixed _money}}</td>
                <td>
                    {{#if state==$Top.config.guide_status.weishenqingduihuan}} {{#if !_money}}
                    <div class="info">无红利，无法申请</div>
                    {{#else}}
                    <button event-click="{{'$Top.$Event.user.shoppinguide.weishenqingduihuan_to_shenqingduihuanzhong'}}">申请红利兑现</button>
                    {{/if}} {{/if}} {{#if state==$Top.config.guide_status.shenqingduihuanzhong}}
                    <div class="info">申请已发送，等待商家发款</div>
                    {{/if}} {{#if state==$Top.config.guide_status.shangjiayijingfukuan}}
                    <div class="info">商家确认发款</div>
                    <button event-click="{{'$Top.$Event.user.shoppinguide.shangjiayijingfukuan_to_yonghuquerenfukuan'}}">确认到帐</button>
                    {{/if}}
                </td>
            </tr>
            {{/each}}
        </table>
    </div>

</div>
